
import request from '@/utils/request'

export function getLastEvent() {
    return request({
    url: '/event/getLastEvent',
    method: 'get'
})}
export function createEvent(form){
    return request({
        url:'/event/createEvent',
        method:'post',
        data:form
    })
}
export function getAllEvent(){
    return request({
        url: '/event/getAllEvent',
        method: 'get'
    })}

export function getRoomsByEventID(event_id){
    return request({
        url: '/event/getRoomsByEventID/'+event_id,
        method: 'get'
    }
    
    )}


